package leetcode.code300;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution300 implements IDebug {

	public abstract int lengthOfLIS(int[] nums);

	@Override
	public void debug1() {
		String str = "[10,9,2,5,3,7,101,18]";
		int e = 4;
		debug(str, e);
	}

	private void debug(String str, int e) {
		int[] nums = HelpDebug.str2array3(str);
		int r = this.lengthOfLIS(nums);
		HelpDebug.compare(e, r);

	}

	@Override
	public void debug2() {
		String str = "[0,1,0,3,2,3]";
		int e = 4;
		debug(str, e);
	}

	@Override
	public void debug3() {
		String str = "[7,7,7,7,7,7,7]";
		int e = 1;
		debug(str, e);
	}

	@Override
	public void debug4() {
		// [4,10,4,3,8,9]
		String str = "[4,10,4,3,8,9]";
		int e = 3;
		debug(str, e);
	}

}
